﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<ul id="menu">
                    <li><asp:HyperLink ID="hypHome" runat="server" NavigateUrl="<%$RouteUrl:routename=default,controller=Home,action=Index%>">Home</asp:HyperLink></li>
                    <li><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/WebForms/Shared/RoomTypeView.aspx">Room Type</asp:HyperLink></li>

                    <%
                        if (Page.User.IsInRole("admin"))
                        {
                    %>
                        <li><asp:HyperLink ID="HypCustomer" runat="server" NavigateUrl="~/WebForms/Account/CustomerView.aspx">Customer</asp:HyperLink></li>  
                        <li><asp:HyperLink ID="HypSerRes" runat="server" NavigateUrl="<%$RouteUrl:routename=default,controller=Reservation,action=Search%>">Reservation</asp:HyperLink></li>
                        <li><asp:HyperLink ID="HypAdmin" runat="server" NavigateUrl="~/WebForms/Report/ReportList.aspx">Report</asp:HyperLink></li>
                        <li><asp:HyperLink ID="HypRm" runat="server" NavigateUrl="~/WebForms/Room/RoomSearch.aspx">Room</asp:HyperLink></li>
                     <%
                        }
                        else if(Request.IsAuthenticated){
                            
                    %>
                        <li><asp:HyperLink ID="HypListRes" runat="server" NavigateUrl="<%$RouteUrl:routename=default,controller=Reservation,action=Index%>">Reservation</asp:HyperLink></li>
                    <%
                        }
                    %> 

                    <li><asp:HyperLink ID="HypAbout" runat="server" NavigateUrl="<%$RouteUrl:routename=default,controller=Home,action=About%>">About</asp:HyperLink></li>

</ul>